package com.example.dingtalklogin.common.exception;

import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = true)
@Data
public class CheckException extends RuntimeException{

    private Integer code;

    public CheckException(String msg){
        super(msg);
        this.code = 10001;
    }

    public CheckException(Integer code, String msg){
        super(msg);
        this.code = code;
    }
}